home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2000 #4
/
Amiga Plus CD - 2000 - No. 4.iso
/
Tools
/
Text
/
HTML
/
HTMLEXT
/
GUI
/
menu.file
< prev
next >
Wrap
Text File
|
2000-04-19
|
7KB
|
243 lines
G4C
; $VER: menu.file Rev.027 © by Juan Manuel Wehrli 1999 - 2000
WINBIG -1 -1 100 210 "Datei"
WinType 00001000
WinOnMouse 90 205
WinBackGround IMAGE BG 0
Winout "NIL:"
VarPath HTMLEXT
xOnLoad
GuiOpen #This
XButton 0 0 100 15 "An Mail kleben"
GadFont xHelvetica.font 11 000
GuiClose #This
lvuse HTMLEXT 1
SetVar .htmlext.emad $%SiteMail
SetVar .htmlext.subj $%SiteSubj
EZREQ "Neues Mail dazu generieren, oder ans bestehende Mail anfügen?" "_1 Neu|_2 Bestehendes|[_X] Abbrechen" mailart
if $mailart = 1
LVUSE HTMLEXT 3
LVMulti First
Joinfile $$lv.dir $$lv.rec efile
Update "InfoBar" 1 "Hefte $efile ans EMail ..."
cli 'rx $*MAILER WRITEFIRST $efile'
LVMulti Off
LVMulti Show
LVMulti First
while $$lv.line > ""
Joinfile $$lv.dir $$lv.rec efile
cli 'rx $*MAILER WRITEREST "$efile"'
Update "InfoBar" 1 "Hefte $efile ans EMail ..."
LVMulti OFF
LVMulti Show
LVMulti NEXT
EndWhile
LVDIR #$$LV.DIR
Update "InfoBar" 1 "Alle Dateien ans EMail angeheftet ..."
elseif $mailart = 2
LVUSE HTMLEXT 3
LVMulti First
while $$lv.line > ""
Joinfile $$lv.dir $$lv.rec efile
Update "InfoBar" 1 "Hefte $efile ans EMail ..."
cli 'rx $*MAILER WRITEREST $efile'
LVMulti OFF
LVMulti Show
LVMulti NEXT
EndWhile
LVDIR #$$LV.DIR
Update "InfoBar" 1 "Alle Dateien ans Mail angeheftet ..."
endif
GuiQuit #This
XButton 0 15 100 15 "Multi Umbenennen"
GadFont xHelvetica.font 11 000
GuiClose #This
GuiLoad "HTMLEXT:gui/func.mrename"
GuiQuit #This
XBUTTON 0 30 100 15 "Such Filter"
GadFont xHelvetica.font 11 000
GuiClose #This
GuiLoad "HTMLEXT:gui/func.filefind"
GuiQuit #This
XBUTTON 0 45 100 15 "Verz. erstellen"
GadFont xHelvetica.font 11 000
GuiClose #This
GuiLoad "HTMLEXT:gui/func.makedir"
GuiQuit #This
XBUTTON 0 60 100 15 "Verz. Grösse ber."
GadFont xHelvetica.font 11 000
GuiClose #This
lvuse HTMLEXT 3
cli 'HTMLEXT:c/GetSize $$lv.dir'
GuiQuit #This
XButton 0 80 100 15 "Dublizieren"
GadFont xHelvetica.font 11 000
GuiClose #This
Update "InfoBar" 1 "Dubliziere Datei(en) ..."
LVUSE HTMLEXT 3
LVMulti First
while $$lv.line > ""
SetVar .htmlext.rqt "Dublizieren" ;Titel
SetVar .htmlext.rqb "Bitte neuen Titelname Namen eingeben." ;Body
SetVar .htmlext.rqd "$$lv.rec" ;Default
SetVar .htmlext.rqu "Weiter|Abbrechen" ;Buttons
cli 'rx htmlext:mod/htmlext.smod REQSTRING'
if $.htmlext.res = 1
JoinFile $$lv.dir $$lv.rec file
JoinFile $$lv.dir $.htmlext.tmp nfile
FAILAT 21
Update "InfoBar" 1 "Dubliziere $file nach $nfile ..."
CLI 'copy FROM $file TO $nfile CLONE'
endif
LVMulti OFF
LVMulti Show
LVMulti NEXT
EndWhile
LVDIR #$$LV.DIR
Update "InfoBar" 1 "Fertig!"
GuiQuit #This
XButton 0 95 100 15 "Information"
GadFont xHelvetica.font 11 000
GuiClose #This
LVUSE HTMLEXT 3
Update "InfoBar" 1 "Generiere Information Liste ..."
cli 'echo "Dateiliste" >t:htmlext/info.list'
cli 'echo "Aktuelles Verzeichnis:" >>t:htmlext/info.list'
cli 'echo "$$lv.dir" >>t:htmlext/info.list'
cli 'echo "=================================================================" >>t:htmlext/info.list'
cli 'echo "" >>t:htmlext/info.list'
LVMulti First
while $$lv.line > ""
JoinFile $$lv.dir $$lv.rec file
Update "InfoBar" 1 "Generiere Information für $file ..."
ifexists file $file
cli 'echo "Datei: $file" >>t:htmlext/info.list'
FailAt 21
cli 'version $file >env:.htmlext.tmp'
cli 'echo "Version: $.htmlext.tmp" >>t:htmlext/info.list'
cli 'list $file LFORMAT="Datum: %D" >>t:htmlext/info.list'
cli 'list $file LFORMAT="Zeit: %T" >>t:htmlext/info.list'
cli 'list $file LFORMAT="Grösse: %L bytes" >>t:htmlext/info.list'
cli 'list $file LFORMAT="Kommentar: %C" >>t:htmlext/info.list'
cli 'echo " " >>t:htmlext/info.list'
endif
LVMulti OFF
LVMulti Show
LVMulti NEXT
EndWhile
Update "InfoBar" 1 "Informationsliste anzeigen ..."
cli 'multiview t:htmlext/info.list PUBSCREEN $*SCREEN'
FailAt 21
cli 'delete t:htmlext/info.list FORCE'
Update "InfoBar" 1 ""
GuiQuit #This
XButton 0 110 100 15 "Kopieren nach"
GadFont xHelvetica.font 11 000
GuiClose #This
LVUSE HTMLEXT 3
if $*MODUS = "S"
ReqFile -1 -1 250 500 "Bitte Ziel wählen ..." DIR "dest" "$$LV.DIR"
Update "InfoBar" 1 "Kopiere alle selektierte Dateien nach: $dest"
LVACTION COPY $dest
EZREQ "Soll die Destination angezeigt werden?" "Ja|Nein" dirview
if $dirview = 1
LVDIR #$dest
endif
Update "InfoBar" 1 "Fertig!"
endif
if $*MODUS = "D"
EZREQ "Soll der Site Pfad als Grundpfad gewählt werden?" "_1 Ja|_2 Nein" "fr"
if $fr = 1
ReqFile -1 -1 250 500 "Bitte Ziel wählen ..." DIR "dest" "$*SITEDIR"
Update "InfoBar" 1 "Kopiere alle selektierte Dateien nach: $dest"
LVACTION COPY $dest
EZREQ "Soll die Destination angezeigt werden?" "Ja|Nein" dirview
if $dirview = 1
LVDIR #$dest
endif
Update "InfoBar" 1 "Fertig!"
endif
if $fr = 0
ReqFile -1 -1 250 500 "Bitte Ziel wählen ..." DIR "dest" "$$LV.DIR"
Update "InfoBar" 1 "Kopiere alle selektierte Dateien nach: $dest"
LVACTION COPY $dest
EZREQ "Soll die Destination angezeigt werden?" "Ja|Nein" dirview
if $dirview = 1
LVDIR #$dest
endif
Update "InfoBar" 1 "Fertig!"
endif
endif
GuiQuit #This
XButton 0 125 100 15 "_Löschen"
GadKey "l"
GadFont xHelvetica.font 11 000
GuiClose #This
lvuse HTMLEXT 3
LVAction DELETE "ram:"
GuiQuit #This
XButton 0 140 100 15 "Umbenennen"
GadFont xHelvetica.font 11 000
GuiClose #This
Update "InfoBar" 1 "Dateien umbenennen ..."
LVUSE HTMLEXT 3
LVMulti First
while $$lv.line > ""
SetVar .htmlext.rqt "Umbennen" ;Titel
SetVar .htmlext.rqb "Bitte Dateinamen ändern ... " ;Body
SetVar .htmlext.rqd "$$lv.rec" ;Default
SetVar .htmlext.rqu "Ändern|Abbrechen" ;Buttons
cli 'rx htmlext:mod/htmlext.smod REQSTRING'
if $.htmlext.res = 1
JoinFile $$lv.dir $$lv.rec file
JoinFile $$lv.dir $.htmlext.tmp nfile
CLI 'rename FROM $file TO $nfile'
endif
LVMulti OFF
LVMulti Show
LVMulti NEXT
EndWhile
LVDIR #$$LV.DIR
Update "InfoBar" 1 "Fertig!"
GuiQuit #This
XButton 0 155 100 15 "Verschieben"
GadFont xHelvetica.font 11 000
GuiClose #This
LVUSE HTMLEXT 3
ReqFile -1 -1 250 500 "Bitte Ziel wählen ..." DIR "dest" "$$LV.DIR"
Update "InfoBar" 1 "Kopiere alle selektierte Dateien nach: $dest"
LVACTION MOVE $dest
EZREQ "Soll die Destination angezeigt werden?" "Ja|Nein" dirview
if $dirview = 1
LVDIR #$dest
endif
Update "InfoBar" 1 "Fertig!"
GuiQuit #This
XButton 0 175 100 15 "Vorlagen"
GadFont xHelvetica.font 11 000
GuiClose #This
guiload htmlext:gui/func.templates
GuiQuit #This
;=== Abbruch Button
XButton 0 195 100 15 "Abbrechen [X]"
GadFont xHelvetica.font 11 010
GadKey "x"
GuiQuit #This